package com.qq.dao;

import java.util.List;

import com.qq.bean.Friend;
import com.qq.bean.FriendshipVO;
import com.qq.bean.Users;

public interface FriendshipDao {
	/**
	 * @param friend
	 * @return
	 */
	int insertFriendByAccount(String myAccount,String friendAccount);
	
	List<Users> selctByLikeAccount(String account,String me);
	
	int updateStateByOurAccounts(String myAccount,String friendAccount);
	
	List<FriendshipVO> selectWhoInsertMe(String account);
	
	/**
	 * 查询单个用户是否为好友
	 * @param account
	 * @param me
	 * @return
	 */
	Friend selectFriendBy(String account,String me); 
	
	int updateStareBy(String myAccount,String friendAccount);
}
